<template>
  <div>
    我是music
    <button @click="goMovie">跳转电影</button>
    <button @click="goBack">向上一页</button>
    <button @click="goNext">向下一页</button>
    <hr>

    <div>
      欢迎来到音乐世界
      <router-link :to="{name:'oumei'}">欧美音乐</router-link>
      <router-link :to="{name:'rihan'}">日韩音乐</router-link>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {

    }
  },
  components: {

  },
  methods: {
    goMovie () {
      this.$router.push({
        name: 'movie'
      })
    },
    goBack () {
      this.$router.go(-1);
    },
    goNext () {
      this.$router.go(1);
    }
  }
}
</script>

<style scoped>
</style>
